<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>{$pagetitle}</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="/static/admin/layui/css/layui.css" media="all">
  <link rel="stylesheet" href="/static/admin/style/global.css" media="all">
  <style>
	  .layui-form-label{ width:20%;}
	  .layui-form-label span{ font-size: 12px; color:gray;}
	  .layui-form-item .layui-input-inline{width: 70%;}
	  .layui-table td, .layui-table th{ text-align: center;}
	  .span10{ width: 100px; height: 22px; line-height: 22px; padding: 2px;}
	  .thischeck_all{ text-decoration: underline; cursor: pointer;}
  </style>
</head>
<body>

<form action="{:url()}" method="post" class="layui-form" lay-filter="component-form-group" onsubmit="return save_form2(this)">
	<input name="pubid" type="hidden" value="{$pubid}">
  <div class="layui-form" lay-filter="layuiadmin-app-form-list" id="layuiadmin-app-form-list" style="padding: 20px 30px 0 0;">
    <div class="layui-form-item">
      <label class="layui-form-label">分类</label>
      <div class="layui-input-inline">
        <select name="catid" class="layui-input">
          {foreach $cat as $v}
          <option value="{$v.catid}" <?=$v['catid']==$catid?'selected':''?>>{$v.name}</option>
          {/foreach}
        </select>
      </div>
    </div>	  
    <div class="layui-form-item">
      <label class="layui-form-label">名称</label>
      <div class="layui-input-inline">
        <input type="text" name="name" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">字段名<span>(由英文与数字组成，且不能以数字开头。比如："mark")</span></label>
      <div class="layui-input-inline">
        <input type="text" name="field" value="" autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">字段类型</label>
      <div class="layui-input-inline">
        <select name="type" class="layui-input">
          {foreach $typeInc as $k=>$v}
          <option value="{$k}">{$v}({$k})</option>
          {/foreach}
        </select>
      </div>
    </div>	
  </div>
  
	<div class="layui-form-item layui-layout-admin" style="margin-top: 30px;">
		<div class="layui-input-block">
		   <div class="layui-footer" style="left: 0;">
			  <button class="layui-btn" type="submit"  lay-filter="component-form-element">立即提交</button>
			  <button type="reset" class="layui-btn layui-btn-primary close">关闭</button>
		  </div>
		</div>
	</div>  
</form>
  <script src="/static/admin/layui/layui.js"></script>
  <script src="/static/js/jquery.min.js"></script>    
  <script src="/static/js/globals.js"></script>  
  <!--文件上传 start-->
  <script type="text/javascript" src="/static/webuploader/kinderfile.js"></script>
  <script type="text/javascript" src="/static/webuploader/Sortable.js"></script>
  <script type="text/javascript" src="/static/webuploader/morepic.js"></script>
  <!--以下是针对 快速上传单个文件插件-->
  <link rel="stylesheet" type="text/css" href="/static/webuploader/style/webuploader.css" />
  <link rel="stylesheet" type="text/css" href="/static/webuploader/style/style.css" />
  <script type="text/javascript" src="/static/webuploader/webuploader.js"></script>
  <script type="text/javascript" src="/static/webuploader/fastupimg.js"></script>
  <!--文件上传 end-->
  <!--文件上传的预览功能中中也需要用到我 fancybox plus start-->
  <link rel="stylesheet" type="text/css" href="/static/fancybox/jquery.fancybox-1.3.4.css" media="screen" />
  <script type="text/javascript" src="/static/fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
  <script type="text/javascript" src="/static/fancybox/jquery.fancybox-1.3.4.pack.js"></script>
  <!--文件上传的预览功能中中也需要用到我 fancybox plus end-->
  <script>
  layui.config({
    base: '/static/admin/' //静态资源所在路径
  }).extend({
    index: 'lib/index' //主入口模块
  }).use(['index', 'form'], function(){
    var $ = layui.$
    ,form = layui.form;
	form.render(null, 'component-form-group');
  })
  

  </script>
</body>
</html>